<?php
namespace app\common\validate;

use think\Validate;

class Admin extends Validate{

    protected $rule = [
        'username'=>'require|unique:admin,username',
        'nickname'=>'require',
        'password'=>'require'
    ];


    protected $message = [
        'username.require' => '账号必须填写',
        'username.unique'  => '账号必须唯一',
        'nickname.require' => '昵称必须填写',
        'password.require' => '密码必须填写'
    ];
}